/**
 * 实现token持久化工具
 * @type {string}
 */
const TOKEN_KEY = 'geek_pc'

const getToken = () => {
  return localStorage.getItem(TOKEN_KEY)
}

const setToken = (token) => {
  return localStorage.setItem(TOKEN_KEY, token)
}

const clearToken = () => {
  return localStorage.removeItem(TOKEN_KEY)
}

export { getToken, setToken, clearToken }